package com.michael.study.jetpack.module.databinding

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.michael.study.jetpack.R
import com.michael.study.jetpack.bean.User
import com.michael.study.jetpack.bean.UserInfo
import com.michael.study.jetpack.databinding.ActivityDataBindingBinding
import com.michael.study.jetpack.databinding.ActivityDatabindingNormalBinding

class NormalActivity : AppCompatActivity() {

    private lateinit var mBinding: ActivityDatabindingNormalBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = DataBindingUtil.setContentView(this,R.layout.activity_databinding_normal)
        var user = User("lgq","male");
        mBinding.user = user;
    }
}